<?php
    require './lib/facebook.php';
    require './php/util/util.php';
    $facebook = new Facebook(array(
      'appId'  => '523682457680450',
      'secret' => 'd6a793ffefb785f77f50461e5c4d01c7',
      'cookie' => true,
   ));
 
   //ovewrites the cookie
   $facebook->destroySession();
   setcookie('username','', time() - 3600);
   setcookie('password','', time() - 3600);
   //redirects to index 
   header('Location: ' . getIndexURL());
?>
